package com.example.preventlosing;

import java.io.ObjectOutputStream.PutField;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;


public class SearchLoginActivity extends Activity {

	Button loginBtn;
	EditText editID;
	public TextView textID;
	//TCPClient client;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_search_login);
		
		loginBtn = (Button)findViewById(R.id.loginButton);
		editID = (EditText)findViewById(R.id.editTextRegisterID);
		textID = (TextView)findViewById(R.id.textRegisterID);
		
		loginBtn.setOnClickListener(new View.OnClickListener() {
			
		
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				
				
				String ip = editID.getText().toString();
				
				Intent intent = new Intent(SearchLoginActivity.this, SearchActivity.class);
				intent.putExtra("ip", ip);
				startActivity(intent);
			}
		});
	}
	

}
